<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
                    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<link rel="stylesheet" href="http://github.com/jquery/qunit/raw/master/qunit/qunit.css" type="text/css" media="screen" />
<script type="text/javascript" src="http://github.com/jquery/qunit/raw/master/qunit/qunit.js"></script>
<script type="text/javascript" src="php.default.min.js"></script>
<script type="text/javascript" src="session_utils.js"></script>

<script type="text/javascript" src="session_start.js"></script>

<script>
$(document).ready(function(){
	module("Session Across Pages");
	test("$_SESSION Exists", function() {
		session_start();
		ok($_SESSION, "Session Exists");
		ok(getcookie("JSSESSID"), "Session in cookie");
	});
	test("$_SESSION data intact",function() {
		equals($_SESSION.test, "data", "Session var exists");
		equals($_SESSION.coheed, "yotbr", "Session var exists");
	});
	test("$_SESSION === JSSESSID",function() {
		$_SESSION = null;
		session_start();
		equals($_SESSION.test, "data", "Exists after session_start");
		equals($_SESSION.coheed, "yotbr", "Exists after session_start");
	});
});
</script>

</head>
<body>
 <h1 id="qunit-header">QUnit example</h1>
 <h2 id="qunit-banner"></h2>
 <h2 id="qunit-userAgent"></h2>
 <ol id="qunit-tests"></ol>
 <div id="qunit-fixture">test markup, will be hidden</div>
</body>
</html>